import Vue from 'vue'
import {
	formateDate
} from '../utils/utils.js'


Vue.filter('datetime', (date, format='YYYY-MM-QQ HH:mm:SS')=>{
	if(!date) return '';
	return formateDate(format, date);
})
Vue.filter('date', (date, format='YYYY-MM-DD')=>{
	if(!date) return '';
	return formateDate(format, date);
})
Vue.filter('time', (date, format='HH:mm:SS')=>{
	if(!date) return '';
	return formateDate(format, date);
})